﻿<UserControl x:Class="SmartSpace.WpfShell.Modules.Dynamic.DetailTemplateView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:src="clr-namespace:SmartSpace.WpfShell.Modules.Dynamic.Util"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0">
            <TextBlock Text="选择流转环节" VerticalAlignment="Center"/>
            <ComboBox Name="_ctlListEvent" MinWidth="50" ItemsSource="{Binding Path=Events}">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Path=Caption}"/>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <Button Name="_ctlBtnSubmit" Content="提交" Click="_ctlBtnSubmit_Click"/>
            <Button Name="_ctlBtnSave" Content="保存" Click="_ctlBtnSave_Click" />
            <Button Content="删除"/>
            <Button Content="返回"/>
        </ToolBar>
        <Grid Grid.Row="1">
            <ScrollViewer VerticalScrollBarVisibility="Auto" Background="White" BorderBrush="Black" BorderThickness="2" Margin="5,5,5,5" Padding="0">
                <StackPanel Name="_ctlContainer"/>
            </ScrollViewer>
        </Grid>
    </Grid>
</UserControl>
